package cn.jly.spring.jdbc.dao;

import cn.jly.spring.jdbc.bean.Student;

import java.util.List;

/**
 * @author lanyangji
 * @description studentDao
 * @date 2020/11/11 上午 10:44
 */
public interface StudentDao {
    int[] batchUpdate(List<Student> students);

    int[] batchDelete(List<Integer> ids);

    int[] batchInsert(List<Student> students);

    List<Student> getAll();

    Student getById(Integer id);

    int insert(Student student);

    int deleteById(Integer id);

    int updateById(Student student);
}
